#ifdef _TEST
#include "DailyRecode.h"

int DailyRecode::getRecode() {
	char str[200] = { 0 };

	scanf_s("%s", str, 200);

	if (strcmp(str, "info") == 0) {
		return 0;
	}
	if (strcmp(str, "warm") == 0) {
		return 1;
	}
	if (strcmp(str, "error") == 0) {
		return 2;
	}
	return 3;
}

int DailyRecode::controlSys() {
	int a = 1;
	switch (getRecode()) {
	case 0:s_hand->logInfo("%d", a); break;
	case 1:s_hand->logWarn("%d", a); break;
	case 2:s_hand->logErr("%d", a); break;
	default:s_hand->logErr("%d", a); break;
	}

	return 0;
}

//int main() {
//	DailyRecode::getInst()->setLevel(true, true, true);
//	DailyRecode::getInst()->init("./");
//	DailyRecode::getInst()->controlSys();
//
//	return 0;
//}

#endif // _TEST